#define _CRT_SECURE_NO_WARNINGS 1
#include <opencv2/opencv.hpp>

int main() {
    cv::Mat image = cv::imread("circle.bmp", cv::IMREAD_GRAYSCALE);
    if (image.empty()) {
        std::cout << "Error: Could not open or find the image" << std::endl;
        return -1;
    }

    cv::Mat edges;
    cv::Canny(image, edges, 100, 200);

    cv::imshow("Original Image", image);
    cv::imshow("Edge Image", edges);
    cv::waitKey(50000);

    return 0;
}